<?php

namespace app\index\controller;

use think\exception\ValidateException;
use app\model\Geocoder;

class GeocoderController extends Base
{

    public function reversegeocoding()
    {
        $postdata = input('post.');
        $data = Geocoder::reverse_geocoding($postdata['latitude'], $postdata['longitude']);
        return $this->json(['data' => $data]);
    }
}
